<?php
/**
 * Created by PhpStorm.
 * User: pf
 * Date: 2017/11/16
 * Time: 09:49
 */
 $name='tony';

try {
    $name = $name->method();
} catch (\Error $e) {
    echo "出错消息 --- ", $e->getMessage(), PHP_EOL;
}
